//
//  TestView.m
//  TestFramework
//
//  Created by tanqilong on 16/7/18.
//  Copyright © 2016年 tanqilong. All rights reserved.
//

#import "TestView.h"

@interface TestView ()
@property (weak, nonatomic) IBOutlet UILabel *titleLabel;

@end

@implementation TestView

-(void)setTitle:(NSString *)title {
    _titleLabel.text = title;
}

-(instancetype)initWithFrame:(CGRect)frame {
    self = [super initWithFrame:frame];
    if (self) {
        UIView * view = [[[NSBundle mainBundle] loadNibNamed:@"TestView" owner:self options:nil]firstObject];
        view.frame = self.bounds;
        [self addSubview:view];
    }
    return self;
}

+(void)test {
    NSLog(@"test");
}

@end
